package com.itheima.feign.fallback;

import com.itheima.feign.GoodsFeign;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class GoodsFeignFallbackFactory implements FallbackFactory<GoodsFeign> {

    @Override
    public GoodsFeign create(Throwable throwable) {
        return max -> "服务降级 Factory";
    }
}
